package com.jinke.api.modules.ums.controller;

import com.jinke.api.common.api.CommonResult;
import com.jinke.api.modules.app.service.UserRechargeService;
import com.jinke.api.modules.ums.request.FindZoneRequest;
import com.jinke.api.modules.ums.vo.FindZoneVo;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @projectName:
 * @title: FindZoneController
 * @description: find zone查询
 * @see:
 * @author: hhp
 * @version: 1.0.0
 * @createTime: 2024/7/29 9:26
 */
@RestController
@RequestMapping("/admin/findZone")
@RequiredArgsConstructor
public class FindZoneController {

    private final UserRechargeService userRechargeService;

    @ApiOperation("find zone")
    @PostMapping("/allZone")
    public CommonResult<List<FindZoneVo>> getAllZone(@Validated @RequestBody FindZoneRequest findZoneRequest) {
        return userRechargeService.getAllZone(findZoneRequest);
    }
}
